package com.javabaas.server.novel_server.chapter.entity;

import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface ChapterRepository extends MongoRepository<Chapter, String> {

    List<Chapter> findByBook(String bookId, Sort sort);


}
